﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace SimpleExpression
{
    public class PropertyMetadata
    {
        private EntityMetadata entityMetadata;

        public PropertyMetadata()
        { 
        
        }

        public PropertyMetadata(EntityMetadata entityMetadata)
        {
            this.entityMetadata = entityMetadata;
        }

        [XmlIgnore]
        public EntityMetadata EntityMetadata 
        {
            get { return this.entityMetadata; }
            set { this.entityMetadata = value; }
        }

        public string PhysicalName { get; set; }

        public string Alias 
        {
            get { return this.entityMetadata.Alias; } 
        }

        public string PlatformName { get; set; }

        public Guid PropertyId { get; set; }
    }
}
